package app.dao;

import app.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeDao {
    //查询所有记录
    public List<Employee> listEmployee();

    //按id查询
    public Employee queryById(Integer id);

    //按姓名模糊查询
    public List<Employee> queryByUsername(String username);

    //保存用户
    public int addEmployee(Employee employee);

    //根据员工id删除
    public int deleteEmployeeById(Integer id);

    //修改员工信息
    public int editEmployee(Employee employee);

}
